package net.zhnb.service;

import java.math.BigDecimal;

import finaler.util.Page;
import finaler.util.PageList;

import net.zhnb.bean.Lottery;
import net.zhnb.bean.LotteryKey;

public interface LotteryService {

    public boolean insert(Lottery lottery) throws Exception ;

    public boolean update(Lottery lottery) throws Exception ;

    public Lottery findByKey(LotteryKey key) throws Exception ;

    public boolean deleteByKey(LotteryKey key) throws Exception ;

    public int getLotteryCount(String mobile)throws Exception ;
    
    public int getLotteryCount(String mobile,int lun)throws Exception ;
    
    public int countByMobileShowerid(String mobile , BigDecimal lun,BigDecimal showerid )throws Exception ;
    
    public int getMaxLotteryId(String mobile)throws Exception ;
    
	public PageList getPageList(Page page) throws Exception;
}
